package com.yunji.cabinet.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class UpgradeTaskDTO {

    @ApiModelProperty(value = "任务名称",required = true)
    @NotNull(message = "请输入任务名称")
    private String taskName;

    @ApiModelProperty(value = "文件ID",required = true)
    @NotNull(message = "请选择软件版本")
    private Long fileId;

    @ApiModelProperty(value = "任务类型 0-批量升级 1-指定升级",required = true)
    @NotNull(message = "请指定任务类型")
    private Integer taskType;

    @ApiModelProperty("芯片类型")
    @NotNull(message = "请选择芯片类型")
    private String chipType;

    @ApiModelProperty("货柜名称")
    private String containerName;

    @ApiModelProperty("代理Ids")
    private List<Long> agentIds;

    @ApiModelProperty("网点Ids")
    private List<Long> siteIds;

    @ApiModelProperty("货柜类型集合")
    private List<Long> typeIds;

    @ApiModelProperty("在线状态集合")
    private List<Integer> onlineStatusList;

    @ApiModelProperty("芯片集合")
    private List<String> chipTypeList;

    @ApiModelProperty("软件版本集合")
    private List<String> versionList;

    @ApiModelProperty("货柜IDs")
    private List<Long> containerIds;

    @ApiModelProperty("是否绑定 true-绑定 false-未绑定")
    private boolean whetherBind;

}
